//
//  MicView.h
//  MooreDoll
//
//  Created by Joe on 2014/12/18.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MicViewProtocol <NSObject>

-(void)sendAudioToXMPPWithDataPath:(NSString *)mp3Path andFileName:(NSString *)fileName andPathInApp:(NSString *)pathInApp;
@end


@interface MicView : UIView<UIPickerViewDataSource,UIPickerViewDelegate>
{
    IBOutlet UIButton *BT_microphone;
    IBOutlet UIButton *BT_voiceMode;
    IBOutlet UIButton *BT_playMode;
    BOOL recording;
    UILongPressGestureRecognizer *gest_longPress;
    UIPickerView *pickView_voiceMode;
    UIPickerView *pickView_playMode;
    
    NSString *recordFilePath ;
}

@property(nonatomic,weak)id<MicViewProtocol> delegate;
@property(nonatomic,strong)IBOutlet UIButton *BT_voiceMode;
@property(nonatomic,strong)IBOutlet UIButton *BT_playMode;

-(void)microphoneSetting;

@end
